import useBasic from './basic';
import useCard from './card';
import useHp from './hp';
import usePhase from './phase';
import useSkill from './skill';

export default function usePlayer(): player {
    const basic = useBasic();
    return {
        ...basic,
        ...useHp({
            seat: basic.seat,
            name: basic.name,
            initMaxHp: basic.initMaxHp,
        }),
        ...useSkill({
            seat: basic.seat,
            name: basic.name,
            initSkillsConfig: basic.initSkillsConfig,
        }),
        ...useCard({
            seat: basic.seat,
            name: basic.name,
        }),
        ...usePhase({
            seat: basic.seat,
        }),
    };
}
